function y=rastrigin(x,n)  % the function to optimize
%y=n+sum(x.^2-cos(2*pi*x));%
%equation%
%endfunction
% 

